package cn.js.sip.rat.system.mapper;

import cn.js.sip.rat.system.entity.SysMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: cn.js.sip.rat.system.mapper
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2019-12-27   16:25
 */
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    List<SysMenuEntity> getList();

    List<SysMenuEntity> getMenusByRole(@Param("roleId") String roleId);

    List<SysMenuEntity> selectMenuListByUserId(String userId);

    SysMenuEntity selectMenuById(String id);

    List<String> selectMenuTree(String roleId);
}

